<!DOCTYPE html>
{# html element without xmlns will fail the epubchecker 3.01 test #}
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <title>{{section.title}}</title>
  <style type="text/css">
h1 { text-align: center; }
{{section.css}}
  </style>
</head>
<body>
  <h1>{{section.title}}</h1>
{% for paragraph in section.text %}
  <p>
  {% if paragraph is string %}
    {{paragraph|e}}
  {% elif paragraph is sequence %}
    {% for text, className in paragraph %}
      {% if className %}
    <span class="{{className}}">{{text|e}}</span>
      {% else %}
    {{text|e}}
      {% endif %}
    {% endfor %}
  {% endif %}
  </p>
{% endfor %}
</body>
</html>
